package net.qhzw.vip.qiyu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.qhzw.vip.qiyu.entity.DtsCarTransfer;
import net.qhzw.vip.qiyu.model.DtsCarTransferForm;
import net.qhzw.vip.qiyu.model.DtsCarTransferVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface DtsCarTransferService extends IService<DtsCarTransfer> {

    /***
     * 查询换车申请列表
     * @param page
     * @return
     */
    Map<String, Object> findByPage(Page<DtsCarTransfer> page, String idCard, String mobile, String realName, Long shopId);

    /***
     * 换车申请
     * @param form
     * @return
     */
    boolean carChgApp(DtsCarTransferForm form, HttpServletRequest request);

    /***
     * 换车审核
     * @param id
     * @param status
     * @param transferOpinion
     * @return
     */
    boolean changeReview(Long id, Byte status, String transferOpinion,Long communityId, HttpServletRequest request);


    /***
     * 查询当前骑手换车订单
     * @return
     */
    DtsCarTransferVo getCarTransferByUser();


    /***
     * 骑手确认换车费用
     * @param id
     * @param userConfirm
     * @param userOpinion
     * @return
     */
    boolean exchangeFee(Long id, Byte userConfirm, String userOpinion);

    /**
     * 查询维修欠款
     * @return
     */
    String maintArrs(Long shopId);


    Integer checkPay(Long carRentalId);

}
